#include "mpHttpRequestEmptyContent.h"

namespace MP{
namespace HTTP{
namespace INTERNAL{

HttpRequestEmptyContent::HttpRequestEmptyContent()
{
    HttpRequestContent::setContentType("text/plain");
}

std::string HttpRequestEmptyContent::getMd5(){
    return {};
}

/**
 * @brief 获取Body大小
 * @return
 */
std::size_t HttpRequestEmptyContent::getContentLength()  {
    return 0;
}

/**
 * @brief 开始数据写入（如果返回Fasle表示数据存在异常）
 */
bool HttpRequestEmptyContent::beginWriteData() {
    return true;
}
/**
 * @brief 写入部分数据
 * @param steam
 * @return
 */
bool HttpRequestEmptyContent::onWriteDataSome(std::vector<boost::asio::const_buffer>& buffers) {
    return false;
}
/**
 * @brief 结束数据写入
 */
void HttpRequestEmptyContent::endWriteData() { }

}   //INTERNAL
}   //HTTP
}   //MP
